//
//  WeatherInfo.m
//  BiuWeather
//
//  Created by 楼楚 on 16/3/10.
//  Copyright © 2016年 Chu Lou. All rights reserved.
//

#import "WeatherInfo.h"
#define hourly_forecast @"hourly_forecast"
#define status @"status"
#define daily_forecast @"daily_forecast"
#define aqi @"aqi"
#define basic @"basic"
#define suggestion @"suggestion"
#define now @"now"

@implementation WeatherInfo
- (void) getInfo
{
    self.daily = [self.weatherIn.weather objectForKey:daily_forecast];
    self.airCondition = [self.weatherIn.weather objectForKey:aqi];
    NSDictionary *today = [self.weatherIn.weather objectForKey:now];
    NSDictionary *wind = [today objectForKey:@"wind"];
    self.temp = [today objectForKey:@"temp"];
    self.speed = [wind objectForKey:@"spd"];
    self.direction = [wind objectForKey:@"dir"];
    self.humidity = [today objectForKey:@"hum"];
    NSDictionary *cond = [today objectForKey:@"cond"];
    self.weatherTxt = [cond objectForKey:@"txt"];
    self.weatherCode = [cond objectForKey:@"code"];
    
    
    

}
@end
